package Test1230;

public class Test09 {
    public static void main(String[] args) {

        // (9)求数组元素平均值
        int[] arr = {1,2,3,4,5};
int t=0;
for (int i:arr){
    t+=i;
}
double avg= t/ arr.length;
        System.out.println(avg);
    }
}